package cc.rengu.redp.bizimpl.csmc.controller;


import cc.rengu.redp.bizimpl.csmc.domain.CSysParam;
import cc.rengu.redp.bizimpl.csmc.service.ICSysParamService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 获取业务类型
 *
 * @author lizk
 */
@RestController
@Slf4j
@RequestMapping("/admin/csmc/sysParam")
public class CSysParamController {

    @Autowired
    private ICSysParamService sysParamService;

    @GetMapping
    public List<CSysParam> getListByInstIdAndParamType(@RequestParam("type") String type){
        return sysParamService.getListByInstIdAndParamType(type);
    }

}
